package com.ysd.zytj.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.ysd.zytj.model.ConsumeLog;

public interface IConsumeLogDao extends JpaRepository<ConsumeLog, Integer>{

	@Query(value = "select * from consume_log where card_no =:cardNo order by in_time desc limit 1",nativeQuery = true)
	ConsumeLog getOne(String cardNo);
	
}
